﻿using Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IRepository
{
    public interface ICustomerRepository
    {
        // 新增客户方法
        Task<int> AddCustomerAsync(WMSBasicCustomer wMS_Basic_Customer);


        Task<List<WMS_Basic_Customer2>> GetAllCustomerAsync(
string customer_code = null,
string customer_name = null,
int? status = null,
int? job_type = null,
int? person_in_charge = null,
string contact_person = null);



        // 根据客户编号查询客户详情（异步方法）
        Task<WMS_Basic_Customer2> GetCustomerByCodeAsync(string customerCode);


        //客户编辑根据客户编号查询信息
        Task<WMSBasicCustomer> GetCustomerByCode(string customerCode);


        //客户管理编辑修改方法
        Task<int> UpdateCustomer(WMSBasicCustomer wMS_Basic_Customer);


        //删除客户改变状态
        Task<int> UpdateIsDelete(string customerCode, string isDelete);
    }
}
